import java.util.Scanner;

public class text {
    public static void main(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(i+"*"+j+"="+i*j+" ");
            }
            System.out.println();
        }
    }
    public static void main4(String[] args) {
        for (int i = 1000; i <= 2000 ; i++) {
            if(i%100 != 0 && i%4 == 0 || i%400 == 0){
                System.out.println(i+" ");
            }
        }
    }
    public static void main3(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        if (n < 18) {
            System.out.println("少年");
        }
        if(18<=n && n<29)
        {
            System.out.println("青年");
        }
        if (29 <=n && n<57) {
            System.out.println("中年");
        }
        if(57<=n){
            System.out.println("老年");
        }
    }
    public static void main2(String[] args) {
        for (int i = 1; i <= 100; i++) {
            int j=2;
            for (; j <= Math.sqrt(i); j++) {
                if(i%j==0)
                {
                    break;
                }
            }
            if(j>Math.sqrt(i))
                System.out.println(i+"是素数");
        }
    }
    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int i=2;
        while(true){
            int n=scanner.nextInt();
            if (n == 0) {
                break;
            }
            for (i = 2; i <= Math.sqrt(n); i++) {
                if(n%i==0)
                {
                    System.out.println(n+"不是是素数");
                    break;
                }
            }
            if(i>Math.sqrt(n))
                System.out.println(n+"是素数");
            }
        }
}
